package com.dekarrin.scraton;

import com.dekarrin.util.StringWrapper;

public class SlugLine extends TechnicalInstruction {
	
	private InsideOutside insideOutside;
	
	private String location;
	
	private String time;
	
	public SlugLine(long timestamp, InsideOutside inOut, String location, String time) {
		super(timestamp);
		this.insideOutside = inOut;
		this.location = location.toUpperCase();
		this.time = time.toUpperCase();
	}
	
	public String toString() {
		StringBuilder str = new StringBuilder();
		str.append("\n");
		str.append(insideOutside);
		str.append(" ");
		str.append(location);
		str.append(" - ");
		str.append(time);
		StringWrapper wrapper = new StringWrapper(format.scriptWidth, "\n");
		return wrapper.wrap(str.toString()) + "\n\n";
	}
	
}